<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>实验室</title>
    <link th:href="@{/img/Bandit.ico}" rel="icon">
    <link th:href="@{/layui/css/layui.css}" rel="stylesheet">
    <link th:href="@{/css/public.css}" rel="stylesheet">
    <link th:href="@{/css/lab.css}" rel="stylesheet">
    <style>
        .lab-show{
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-start;
            padding: 20px;
        }
        .lab{
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-direction: column;
            background: rgba(161, 161, 161, 0.87);
            width: 1000px;
            margin: 20px;
            border: 2px solid #15588d;
            border-radius: 5px;
            padding: 10px;
            box-shadow:0 0 9px 3px #888888;
        }
        .lab-img{
            border: 2px solid #261818;
            border-radius: 5px;
            margin: auto;
        }
        .lab-info{
            background: rgba(255, 255, 255, 0.87);
            margin-top: 10px;
            width: 100%;
            border: 2px solid #8d3636;
            border-radius: 5px;
        }
    </style>
</head>
<div th:replace="~{commons/common::MyHeader}"></div>
<body>
<div class="layui-main">
    <div class="layui-card">
        <div class="layui-card-header">
            <p>实验室列表</p>
        </div>
        <div class="layui-card-body lab-show">
            <div class="lab" th:each="lab:${labList}">
                <div class="lab-img">
                    <img style="width: 500px;  object-fit: contain"  th:src="${lab.labImg}">
                </div>
                <div class="lab-info">
                    <fieldset class="layui-elem-field">
                        <legend th:text="${lab.labName}" style="display: inline-block;padding-top: 10px;font-weight: bold"></legend>
                        <div class="layui-field-box">
                            <p th:text="${lab.labDetails}" style="text-indent: 2em;text-align: justify"></p>
                        </div>
                    </fieldset>
                </div>
            </div>
            <hr class="layui-border-black">
        </div>
    </div>
</div>

<div th:replace="~{commons/common::pubScript}"></div>
</body>
</html>